#ifndef _RESPONDERMEDIATOR_H_
#define _RESPONDERMEDIATOR_H_

#include "IResponder.h"

class ResponderMediator :public cocos2d::Ref
{
public:
	IResponder * _document;

	static ResponderMediator * create(IResponder * object);

	bool initialized(IResponder * object);
	void collectInterests();
	void handleResponder(Ref* obj);
	void clean();

	static void dispatchEvent(const std::string & keyName , ResponderObject * object);
};

#endif